<template>
	<view class="p_content">
		<view class="my_box">
			<view class="my_box_box">
				<view class="my_box_top" v-for="(item, index) in payList" :key="index" @click="jumpSwitch(item.btnName)">
					<view class="avatoa">
						<text class="my_txt">{{item.btnName}}</text>
					</view>
					<view class="icon_right">
						<view class="my_txt mytxt"><image class="arrow_icon" src="/static/images/me/to_right_icon.png" mode="scaleToFill"></image></view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				payList: [
					{ btnName: '支付密码设置', btnImg: '/static/images/me/denglumima.png' },
					{ btnName: '支付密码重置', btnImg: '/static/images/me/denglumima.png' }
				]
			}
		},
		methods: {
			jumpSwitch(name) {
				let url = './paySetting?type=';
				if(name == '支付密码设置') {
					url += 'set'
				}
				if(name == '支付密码重置') {
					url += 'reset'
				}
				uni.navigateTo({
					url: url
				})
			}
		}
	}
</script>

<style lang="scss">
	.p_content {
		height: 100vh;
		background-color: rgb(243, 243, 243);
		overflow: hidden;
	}
	.my_box {
		margin-top: 16rpx;
	}
	.icon_right {
		display: flex;
		flex-direction: row;
		align-items: center;
	}
	.my_box_box {
		display: flex;
		flex-direction: column;
	}
	.my_box_top {
		min-height: 106rpx;
		padding: 24rpx 32rpx;
		box-sizing: border-box;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		background-color: #FFFFFF;
		position: relative;
		
		&::after{
			content: "";
			height: 1px;
			transform: scaleY(.5);
			background: #E6E6E6;
			position: absolute;
			right: 0;
			bottom: 0;
			left: 32rpx;
		}
		&:last-child::after {
			height: 0;
		}
	}
	.avatoa {
		display: flex;
		align-items: center;
	}
	.imgava {
		width: 40rpx;
		height: 40rpx; 
		margin-right: 15rpx;
	}
	.my_txt {
		font-family: "PingFangSC";
		font-weight: 400;
		font-size: 30rpx;
		color: #000000;
	}
	.mytxt {
		color: rgb(199, 199, 204);
		line-height: 0;
	}
	.arrow_icon{
		display: inline-block;
		width: 48rpx;
		height: 48rpx;
	}
</style>
